package com.sds.sweng.swat.miplatform.ui.design.models;

import org.eclipse.gef.requests.CreationFactory;

import com.sds.sweng.swat.miplatform.ui.design.utils.CloneUtils;

public class FavoritesLoader implements CreationFactory {

	private MiplatformComponent favoriteModel;

	public FavoritesLoader(MiplatformComponent favoriteModel) {
		this.favoriteModel = favoriteModel;
	}

	public Object getNewObject() {
		return CloneUtils.hardClone(favoriteModel);
	}

	public Object getObjectType() {
		return favoriteModel.getClass();
	}

}
